// import Cookies from 'js-cookie'
const TokenKey = 'vue_admin_template_token'
export function getToken() {
  return sessionStorage.getItem(TokenKey)
}
export function setToken(token) {
  return sessionStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return sessionStorage.removeItem(TokenKey)
}

export function setInfo(data) {
  let str = JSON.stringify(data)
  return sessionStorage.setItem('info',str)
}
export function getInfo() {
  return sessionStorage.getItem('info')
}
